package org.krtrain.sports.tracker;

import java.util.HashSet;
import java.util.Set;

import org.krtrain.sports.player.Player;
import org.kuali.rice.krad.web.form.UifFormBase;

/**
 * @author Kuali Rice Team (rice.collab@kuali.org)
 */
public class GameTrackerForm extends UifFormBase {
    private static final long serialVersionUID = -8385866391850999671L;

    private Game game;

    private boolean clockStopped;
    private boolean timeoutInProgress;
    private Set<Player> inPlayers;

    private Integer newGamePlayNumber;
    private String newGamePlayProperty;
    private int newGamePlayMinutes;
    private int newGamePlaySeconds;
    private int newGamePlayHalf;

    private int possessionArrow;

    private TeamStatistics homeTeamStats;
    private TeamStatistics visitingTeamStats;

    public GameTrackerForm() {
        super();

        game = new Game();
        clockStopped = true;
        timeoutInProgress = false;
        inPlayers = new HashSet<Player>();

        possessionArrow = 1;

        homeTeamStats = new TeamStatistics();
        visitingTeamStats = new TeamStatistics();
    }

    public Game getGame() {
        return game;
    }

    public void setGame(Game game) {
        this.game = game;
    }

    public boolean isClockStopped() {
        return clockStopped;
    }

    public void setClockStopped(boolean clockStopped) {
        this.clockStopped = clockStopped;
    }

    public boolean isTimeoutInProgress() {
        return timeoutInProgress;
    }

    public void setTimeoutInProgress(boolean timeoutInProgress) {
        this.timeoutInProgress = timeoutInProgress;
    }

    public Set<Player> getInPlayers() {
        return inPlayers;
    }

    public void setInPlayers(Set<Player> inPlayers) {
        this.inPlayers = inPlayers;
    }

    public TeamStatistics getHomeTeamStats() {
        return homeTeamStats;
    }

    public void setHomeTeamStats(TeamStatistics homeTeamStats) {
        this.homeTeamStats = homeTeamStats;
    }

    public TeamStatistics getVisitingTeamStats() {
        return visitingTeamStats;
    }

    public void setVisitingTeamStats(TeamStatistics visitingTeamStats) {
        this.visitingTeamStats = visitingTeamStats;
    }

    public Integer getNewGamePlayNumber() {
        return newGamePlayNumber;
    }

    public void setNewGamePlayNumber(Integer newGamePlayNumber) {
        this.newGamePlayNumber = newGamePlayNumber;
    }

    public String getNewGamePlayProperty() {
        return newGamePlayProperty;
    }

    public void setNewGamePlayProperty(String newGamePlayProperty) {
        this.newGamePlayProperty = newGamePlayProperty;
    }

    public int getNewGamePlayMinutes() {
        return newGamePlayMinutes;
    }

    public void setNewGamePlayMinutes(int newGamePlayMinutes) {
        this.newGamePlayMinutes = newGamePlayMinutes;
    }

    public int getNewGamePlaySeconds() {
        return newGamePlaySeconds;
    }

    public void setNewGamePlaySeconds(int newGamePlaySeconds) {
        this.newGamePlaySeconds = newGamePlaySeconds;
    }

    public int getNewGamePlayHalf() {
        return newGamePlayHalf;
    }

    public void setNewGamePlayHalf(int newGamePlayHalf) {
        this.newGamePlayHalf = newGamePlayHalf;
    }

    public int getPossessionArrow() {
        return possessionArrow;
    }

    public void setPossessionArrow(int possessionArrow) {
        this.possessionArrow = possessionArrow;
    }
}

